#include <iostream>

int main()
{
	int sum = 0;
	int i;
	for(i = 50; i < 101; i++)
	{
		sum += i;
	}
	std::cout << "FOR LOOP: Sum from -100 to 100 is " << sum << std::endl;
		
	sum = 0;
	i = 50;
	while (i < 101)	{
		sum += i;
		i++;
	}
	std::cout << "Sum from -100 to 100 is " << sum << std::endl;

}
